<template>
	<view class="main">
		<view class="content">
			<web-view :src="allUrl"></web-view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				allUrl: "",
			};
		},
		onLoad(options) {
			if (!options.url) return this.$utils.showToast('未找到此页面', 1500, 1);
			let fileUrl = decodeURIComponent(options.url); // 接收后端给的pdf地址并解码
			this.allUrl = fileUrl;
			console.log(this.allUrl);
		},
		methods: {
		},
	};
</script>

<style>
</style>
